<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:sf="http://www.springframework.org/tags/faces"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:spring="http://www.springframework.org/tags"
                template="../../../layout/Template.xhtml">

    <ui:define name="menu">
        <ui:include src="${user.menu}"/>
    </ui:define>

    <ui:define name="title">
        <h:outputText value="#{resourceBundle.readTrainingWelcome}"/>
    </ui:define>

    <ui:define name="content">
        <h:form id="readTrainingForm">
            <rich:panel id="readTrainingPanel" header="#{resourceBundle.readTrainingWelcome}">

                <h:panelGrid id="readTrainingGrid" columns="2">
                    <h:outputText value="#{resourceBundle.readTrainingName} : "/>
                    <h:outputText value="#{currentTraining.name}"/>

                    <h:outputText value="#{resourceBundle.readTrainingNbYear} : "/>
                    <h:outputText value="#{currentTraining.nbYear}"/>

                    <a4j:commandButton id="readTrainingBackButton"
                                       value="#{bundle.backButton}"
                                       action="backToListTraining"/>

                    <h:panelGrid style="align:right">
                        <a4j:commandLink value="#{resourceBundle.readListCourses}"
                                         action="backToListCourse"/>

                    </h:panelGrid>
                </h:panelGrid>
            </rich:panel>
        </h:form>
    </ui:define>

</ui:composition>